<?php
// Get the slideshow stuff and show it!
$args = array(
	'post_type' => 'echotheme_slideshow',
	'posts_per_page' => -1,
	'orderby' => 'menu_order'
);

$query = new WP_Query($args);
if ($query->have_posts()) :
?>
<div id="home-slide-wrapper">
	<div id="home-slide-frame-sign"></div>
	<div id="homepage-slides">
	<?php
	while ($query->have_posts()) :
		$query->the_post();
		$attr = array(
			'title' => ''
		);
		$image = get_the_post_thumbnail(get_the_ID(), 'slideshow', $attr);
		// remove the height for the flexslider
		$image = remove_thumbnail_height($image);
		echo $image;
		?>
		
		<?php
	endwhile;
	?>
	</div>
</div> <!-- end #home-slide-wrapper -->
<script type="text/javascript" charset="utf-8">
	$(document).ready(function() {
		$('#homepage-slides').cycle();
	})
</script>
<?php
endif;
?>